import request from '@/utils/request'

// 获取OBS配置
// http://10.4.15.67:3000/project/128/interface/api/1737
export function GetResourceConfig() {
  return request({
    url: 'admin/resource/getHuaWeiTemporaryConf',
    method: 'get'
  })
}

// 获取公共初始化信息
// http://10.4.15.67:3000/project/86/interface/api/1359
export function getOptions() {
  return request({
    url: 'admin/goods/common/querylist',
    method: 'get'
  })
}

/**
 * http://10.4.15.67:3000/project/93/interface/api/5562
 * 生成下载 obs excel 临时加密链接
 */
export function getObsTemporarySignatureUrl(params) {
  return request({
    url: 'admin/order/getObsTemporarySignatureUrl',
    method: 'get',
    params
  })
}

export function getMethodRequest(url, params) {
  return request({
    url: url,
    method: 'get',
    params
  })
}

export function postMethodRequest(url, data) {
  return request({
    url: url,
    method: 'get',
    data
  })
}

/*
* http://10.4.15.67:3000/project/387/interface/api/23877
* 获取多语言配置key
* */
export function getI18nKey(params) {
  return request({
    url: 'admin/i18n/resource/key/get',
    method: 'get',
    params
  })
}

/*
* http://10.4.15.67:3000/project/387/interface/api/23895
* 新增多语言配置
* */
export function addI18n(data) {
  return request({
    url: 'admin/i18n/resource/add',
    method: 'post',
    data
  })
}

/*
* http://10.4.15.67:3000/project/387/interface/api/23913
* 修改多语言配置
* */
export function editI18n(data) {
  return request({
    url: 'admin/i18n/resource/update',
    method: 'post',
    data
  })
}

/*
* http://10.4.15.67:3000/project/387/interface/api/23724
* 获取亚马逊上传文件密钥
* */
export function getAwsConfig() {
  return request({
    url: 'admin/resource/awsConfig',
    method: 'get'
  })
}

/* 
 */
export function getPatientInfo(params) {
  return request({
    url: 'admin/patient/info',
    method: 'get',
    params: params
  })
}
